<template>
  <div class="w-base">
    <div class="w-base-title">
      <h3 style="margin-top: 0">资源管理</h3>
      <div class="w-base-right w-base-switch">
        <ul>
          <li class="active"><a href="/teacher/resource/share.vpage?subject=MATH"><span class="h-arrow"><i
            class="w-icon-arrow w-icon-arrow-blue"></i></span><strong>课程资源</strong></a></li>
        </ul>
      </div>
    </div>
    <!--template container-->
    <div class="w-base-container">
      <!--//start-->
      <!-- 共享资源 -->
      <div class="resBody" onload="init()">
        <div class="row">
          <dl class="catList">
            <dt>类型：</dt>
            <dd class="cur"><a href="/我也想知道这里放啥">全部</a></dd>
            <% courses.forEach(function(Course) { %>
            <dd><a href="/我也想知道这里放啥"><%= Course.name %></a></dd>
            <% }) %>
          </dl>
        </div>
        <div class="row searchRow">
          <div class="left">
            <form class="searchForm" method="post" target="_blank" action="/open.php?mod=goto">


              <label for="searchBox">搜索：</label>
              <input id="searchBox" type="text" name="srchtxt" placeholder="输入关键字搜索作业题">
              <input type="submit" value="搜索" onclick="某个函数">
            </form>
          </div>
          <a class="uploadBtn" target="_blank"
             href="/open.php?mod=goto&amp;url=/forum.php%3Fmod%3Dpost%26action%3Dnewthread%26fid%3D51"
             onclick="tongji('上传')">我要上传</a>
        </div>
        <table class="resTable">
          <thead>
          <tr>
            <th class="first" style="padding-left: 20px">标题</th>
            <th class="last" style="padding-left: 20px">作者</th>
          </tr>
          </thead>
          <tbody>
          <tr>
            <td><a target="_blank"
                   href="/open.php?mod=goto&amp;url=/forum.php%3Fmod%3Dviewthread%26tid%3D48182%26extra%3Dpage%3D1"
                   onclick="tongji('列表')">五年级数学竞赛试卷</a></td>
            <td>王老师</td>
          </tr>
          <tr>
            <td><a target="_blank"
                   href="/open.php?mod=goto&amp;url=/forum.php%3Fmod%3Dviewthread%26tid%3D45864%26extra%3Dpage%3D1"
                   onclick="tongji('列表')">五年级数学</a></td>
            <td>张老师</td>
          </tr>
          </tbody>
        </table>
        <div class="pagination">
          <ul>
            <li><a href="?mod=resource&amp;subject=MATH">第一页</a></li>
            <li class="cur"><a>1</a></li>
            <li><a href="?mod=resource&amp;subject=MATH&amp;page=2">2</a></li>
            <li><a href="?mod=resource&amp;subject=MATH&amp;page=3">3</a></li>
            <li><a href="?mod=resource&amp;subject=MATH&amp;page=4">4</a></li>
            <li><a href="?mod=resource&amp;subject=MATH&amp;page=2">下一页</a></li>
          </ul>
          <div class="skip">
            <form method="get" action="">
              <input type="hidden" name="mod" value="resource">
              <input type="hidden" name="subject" value="MATH">
              <span>跳到</span>
              <input name="page" type="text" size="3">
              <span>页</span>
              <input type="submit" value="GO">
            </form>
          </div>
        </div>
      </div>
      <!--end//-->
    </div>
  </div>
</template>
